<?php
include('../data/comm.inc.php');
include('../data/uservar.php');
include('../func/func.php');
include('../func/csfunc.php');
include('../func/userfunc.php');
include('../include.php');
include('./checklogin.php');

	    if(in_array($_REQUEST['gid'],$garr)){
	       $gid= $_REQUEST['gid'];
		}
        
	
		 $msql->query("select `ma`,maxpc from `$tb_config`");
		 $msql->next_record();
		 $ma = json_decode($msql->f('ma'),true);
		 
		 $tpl->assign("maxpc",$msql->f('maxpc'));
		 $tpl->assign("sx",$ma['生肖']);
		 $tpl->assign("wh",$ma['五行']);
		 $tpl->assign("bm",bml($config['thisbml']));
		 $tpl->assign("gid",$gid);
		 $gamecs = getgamecs($userid);
		 $game = getgamename($gamecs);
		 $tpl->assign("game",$game);
		 echo $tpl->fetch("rule.html");
		 echo $tpl->fetch("r".$gid.".html");
		

?>